<?php
define("DB_USER", "root");
define("DB_PWD",  "123456");
define("DB_HOST", "localhost");
define("DB_NAME", "Lab17");

try{
	$dsn = "mysql:host=".DB_HOST.";dbname=".DB_NAME;
	$pdo = new PDO($dsn, DB_USER, DB_PWD);
	$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
	$pdo->exec("SET NAMES UTF8");
}
catch (PDOException $e) {
	echo $e->getMessage();
}